package com.mms.service;

import static org.junit.Assert.fail;

import java.util.Date;

import org.junit.Test;

import com.mms.entity.CustomerState;
import com.mms.entity.FollowUp;

public class FollowUpServiceImplTest {

	FollowUpServiceImpl svc = new FollowUpServiceImpl();

	@Test
	public void testSave() {
		FollowUp newFollowUp = new FollowUp();
		newFollowUp.setCustId(3);
		newFollowUp.setCustomerState(CustomerState.INTENTIONAL);
		newFollowUp.setFollowUpDate(new Date()); // new Date()即为系统当前日期
		newFollowUp.setFollowUpNote("本次跟进情况良好，对方表现出较强的意向，估计再有几次跟进很快就会签订合同");
		newFollowUp.setFollowUpUsername("Charles");
		this.svc.save(newFollowUp);
	}

	@Test
	public void testListFollowUpHistory() {
		fail("Not yet implemented");
	}

}
